package com.cheng.example.atguigu.design_pattern.facade;

/*
 * @author 程帅
 * @createTime: 2020/10/21 21:35
 * @Created: with IntelliJ IDEA.
 */
//DVD播放器
public class DVDPlay {

    //使用单例模式，使用饿汉式
    private static DVDPlay instance = new DVDPlay();

    public static DVDPlay getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("dvd on");
    }

    public void off() {
        System.out.println("dvd off");
    }

    public void play() {
        System.out.println(" dvd is playing ");
    }

    public void pause() {
        System.out.println(" dvd is pause ");
    }
}
